package com.sxhalo.fsms.service.impl;

import com.sxhalo.fsms.domain.SysDeviceAttr;
import com.sxhalo.fsms.domain.SysDriver;
import com.sxhalo.fsms.mapper.SysDriverMapper;
import com.sxhalo.fsms.service.ISysDriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysDriverServiceImpl implements ISysDriverService {

	@Autowired
	private SysDriverMapper mapper;
	
	@Override
	public Integer insertSelective(SysDriver record) {
		return mapper.insertSelective(record);
	}

	@Override
	public Integer updateByPrimaryKeySelective(SysDriver record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Integer deleteByPrimaryKey(Object key) {
		return mapper.deleteByPrimaryKey(Integer.parseInt(key.toString()) );
	}

	@Override
	public SysDriver selectByPrimaryKey(Object key) {
		return mapper.selectByPrimaryKey(Integer.parseInt(key.toString()) );
	}

	@Override
	public List<SysDriver> findWhereList(String where, String order) {
		return mapper.findWhereList(where, order);
	}

	@Override
	public Integer getCount(String where) {
		return mapper.getCount(where);
	}

	@Override
	public List<SysDriver> findPagerList(Integer start, Integer length, String where, String order) {
		return mapper.findPagerList(start, length, where, order);
	}

    @Override
    public int deleteByWhere(String where) {
        return mapper.deleteByWhere(where);
    }

	@Override
	public Integer updateByPrimaryKey(SysDriver record) {

		return mapper.updateByPrimaryKey(record);
	}
}
